home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-07-19 | 2.4 KB | 76 lines | [TEXT/pdos] |
- DumpFile -- display contents of an arbitrary file
-
- Syntax DumpFile [options...] filename
-
- Description DumpFile lets your display the contents of the resource fork or the
- data fork of a file in a variety of formats.
-
- Input DumpFile does not read standard input. Only 1 filename may be
- specified, and no wildcard characters are accepted.
-
- Output DumpFile writes its output to standard output.
-
- Diagnostics Errors and warnings are written to diagnostic output. Progress
- information is also written to diagnostic output with the -p
- option.
-
- Status DumpFile may return the following status codes:
-
- 0 No errors
- 2 Fatal error
- -1 User abort
-
- Options -rf Display the resource fork of the file (default is data
- fork)
-
- -a Suppress display of ASCII character values
-
- -h Suppress display of hexadecimal characters
-
- -o Suppress display of file offsets
-
- -w nn Display width of nn bytes on each line of output
-
- -g nn Group nn bytes together without intervening spaces
-
- -p Write progress information (such as the name of the file
- being dumped and the version of DumpFile) to diagnostic
- output
-
- -r byte1[,byteN]
- Display only the byte range from byte1 to byteN.
-
- Examples DumpFile -p ATestFile
-
- Formats the data fork of the file "ATestFile" and writes its
- contents to standard output. This output has the following format:
-
- DumpFile - Version 1.0
- Copyright (c) 1990, Apple Computer, Inc.
- All Rights Reserved
- File : ATestFile
- Data Fork Length : 21
- Resource Fork Length : 0
-
- Dumping Data Fork from offset 0 to 21
-
- 0: 54 68 69 73 20 69 73 20 61 20 74 65 73 74 20 66 This is a test f
- 10: 69 6C 65 2E 0D ile..
-
-
- DumpFile -w 12 -g 4 ATestFile
-
- Formats the data fork of the file "ATestFile" and writes its
- contents to standard output, grouping 4 bytes at a time and
- displaying 12 bytes per line. This output has the following
- format:
-
- File : ATestFile
- Data Fork Length : 21
- Resource Fork Length : 0
-
- Dumping Data Fork from offset 0 to 21
-
- 0: 54686973 20697320 61207465 This is a te
- C: 73742066 696C652E 0D st file..
-